from django.db import models

# Create your models here.
class User(models.Model):
    username = models.CharField(max_length=40, verbose_name='账号')
    password = models.CharField(max_length=40, verbose_name='密码')
    name = models.CharField(max_length=20, verbose_name='真实姓名')
    identity = models.CharField(max_length=11, verbose_name='身份证号')
    home = models.CharField(max_length=70,verbose_name='地址')


class HLModel(models.Model):
    update = models.CharField(max_length=40)
    json = models.CharField(max_length=700)


class HLSocket(models.Model):
    date = models.CharField(max_length=40)
    time = models.CharField(max_length=40)
    json = models.CharField(max_length=700)



# class Orders(models.Model):
#
#     #订单 编号
#     order_number = models.CharField(max_length=225)
#     #订单 状态
#     state = models.IntegerField(default=0)



class Orderone(models.Model):
    uid = models.IntegerField(verbose_name='用户id')
    order_id = models.CharField(max_length=100)
    money = models.FloatField(verbose_name='金额')
    create = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')


class Ordertow(models.Model):
    uid = models.IntegerField(verbose_name='用户id')
    order_id = models.CharField(max_length=100)
    money = models.FloatField(verbose_name='金额')
    create = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')